diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifs_dfs_ref.c | 2 | ||||
-rw-r--r-- | fs/cifs/file.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index d82374c9e329..d2c8eef84f3c 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c | |||
@@ -226,7 +226,7 @@ static int add_mount_helper(struct vfsmount *newmnt, struct nameidata *nd, | |||
226 | int err; | 226 | int err; |
227 | 227 | ||
228 | mntget(newmnt); | 228 | mntget(newmnt); |
229 | err = do_add_mount(newmnt, nd, nd->path.mnt->mnt_flags, mntlist); | 229 | err = do_add_mount(newmnt, &nd->path, nd->path.mnt->mnt_flags, mntlist); |
230 | switch (err) { | 230 | switch (err) { |
231 | case 0: | 231 | case 0: |
232 | path_put(&nd->path); | 232 | path_put(&nd->path); |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index d40738d2ab58..ff14d14903a0 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1281,7 +1281,7 @@ retry: | |||
1281 | 1281 | ||
1282 | if (first < 0) | 1282 | if (first < 0) |
1283 | lock_page(page); | 1283 | lock_page(page); |
1284 | else if (TestSetPageLocked(page)) | 1284 | else if (!trylock_page(page)) |
1285 | break; | 1285 | break; |
1286 | 1286 | ||
1287 | if (unlikely(page->mapping != mapping)) { | 1287 | if (unlikely(page->mapping != mapping)) { |