diff options
Diffstat (limited to 'fs/smb/client/file.c')
| -rw-r--r-- | fs/smb/client/file.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index 968740e7c9c3..081bb16abeb4 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -3392,9 +3392,7 @@ static int cifs_swap_activate(struct swap_info_struct *sis, * but we could add call to grab a byte range lock to prevent others * from reading or writing the file */ - - sis->flags |= SWP_FS_OPS; - return add_swap_extent(sis, 0, sis->max, 0); + return swap_fs_activate(sis); } static void cifs_swap_deactivate(struct file *file) |
