diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 41000305d716..20532cb0b06e 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -1331,14 +1331,6 @@ rename_retry: | |||
1331 | * list is non-empty and continue searching. | 1331 | * list is non-empty and continue searching. |
1332 | */ | 1332 | */ |
1333 | 1333 | ||
1334 | /** | ||
1335 | * have_submounts - check for mounts over a dentry | ||
1336 | * @parent: dentry to check. | ||
1337 | * | ||
1338 | * Return true if the parent or its subdirectories contain | ||
1339 | * a mount point | ||
1340 | */ | ||
1341 | |||
1342 | static enum d_walk_ret check_mount(void *data, struct dentry *dentry) | 1334 | static enum d_walk_ret check_mount(void *data, struct dentry *dentry) |
1343 | { | 1335 | { |
1344 | int *ret = data; | 1336 | int *ret = data; |
@@ -1349,6 +1341,13 @@ static enum d_walk_ret check_mount(void *data, struct dentry *dentry) | |||
1349 | return D_WALK_CONTINUE; | 1341 | return D_WALK_CONTINUE; |
1350 | } | 1342 | } |
1351 | 1343 | ||
1344 | /** | ||
1345 | * have_submounts - check for mounts over a dentry | ||
1346 | * @parent: dentry to check. | ||
1347 | * | ||
1348 | * Return true if the parent or its subdirectories contain | ||
1349 | * a mount point | ||
1350 | */ | ||
1352 | int have_submounts(struct dentry *parent) | 1351 | int have_submounts(struct dentry *parent) |
1353 | { | 1352 | { |
1354 | int ret = 0; | 1353 | int ret = 0; |