Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33621
b: refs/heads/master
c: b6b5bce
h: refs/heads/master
i:
  33619: 47a258d
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Aug 27, 2006
1 parent 0a14256 commit 07efa2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c06aad854fdb9da38fcc22dccfe9d72919453e43
refs/heads/master: b6b5bce3571e496504a89ee575d32101e0a98b93
3 changes: 2 additions & 1 deletion trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,12 @@ int swap_type_of(dev_t device)

if (!(swap_info[i].flags & SWP_WRITEOK))
continue;

if (!device) {
spin_unlock(&swap_lock);
return i;
}
inode = swap_info->swap_file->f_dentry->d_inode;
inode = swap_info[i].swap_file->f_dentry->d_inode;
if (S_ISBLK(inode->i_mode) &&
device == MKDEV(imajor(inode), iminor(inode))) {
spin_unlock(&swap_lock);
Expand Down

0 comments on commit 07efa2a

Please sign in to comment.