diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 435991eada1e..a6c5d7e9d622 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -2360,6 +2360,8 @@ static void swap_names(struct dentry *dentry, struct dentry *target) | |||
2360 | */ | 2360 | */ |
2361 | unsigned int i; | 2361 | unsigned int i; |
2362 | BUILD_BUG_ON(!IS_ALIGNED(DNAME_INLINE_LEN, sizeof(long))); | 2362 | BUILD_BUG_ON(!IS_ALIGNED(DNAME_INLINE_LEN, sizeof(long))); |
2363 | kmemcheck_mark_initialized(dentry->d_iname, DNAME_INLINE_LEN); | ||
2364 | kmemcheck_mark_initialized(target->d_iname, DNAME_INLINE_LEN); | ||
2363 | for (i = 0; i < DNAME_INLINE_LEN / sizeof(long); i++) { | 2365 | for (i = 0; i < DNAME_INLINE_LEN / sizeof(long); i++) { |
2364 | swap(((long *) &dentry->d_iname)[i], | 2366 | swap(((long *) &dentry->d_iname)[i], |
2365 | ((long *) &target->d_iname)[i]); | 2367 | ((long *) &target->d_iname)[i]); |