mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:55 +00:00
Revert "swap: Add flag to identify block swap devices"
This reverts commit f206359542.
This commit is contained in:
@@ -123,8 +123,6 @@ enum {
|
||||
SWP_DISCARDABLE = (1 << 2), /* blkdev supports discard */
|
||||
SWP_DISCARDING = (1 << 3), /* now discarding a free cluster */
|
||||
SWP_SOLIDSTATE = (1 << 4), /* blkdev seeks are cheap */
|
||||
SWP_CONTINUED = (1 << 5), /* swap_map has count continuation */
|
||||
SWP_BLKDEV = (1 << 6), /* its a block device */
|
||||
/* add others here before... */
|
||||
SWP_SCANNING = (1 << 8), /* refcount in scan_swap_map */
|
||||
};
|
||||
|
||||
@@ -1842,7 +1842,6 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
|
||||
if (error < 0)
|
||||
goto bad_swap;
|
||||
p->bdev = bdev;
|
||||
p->flags |= SWP_BLKDEV;
|
||||
} else if (S_ISREG(inode->i_mode)) {
|
||||
p->bdev = inode->i_sb->s_bdev;
|
||||
mutex_lock(&inode->i_mutex);
|
||||
|
||||
Reference in New Issue
Block a user