diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-17 16:46:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:34:52 -0500 |
commit | f157853e407c0611cd6acbc400fa6c7be420b1bd (patch) | |
tree | c8ee0adacfd4b798228d0ccd65de3f3ec0ce24d5 /fs/affs/super.c | |
parent | eeb36f8e938d151fc5e12e96ae13d0e283be357e (diff) |
fs/affs: define AFFSNAMEMAX to replace constant use
30 was used all over the place to compare name length against
AFFS maximum name length.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs/super.c')
-rw-r--r-- | fs/affs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index ee8eca7add0e..c3524bfdfe04 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -584,7 +584,7 @@ affs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
584 | buf->f_bavail = free; | 584 | buf->f_bavail = free; |
585 | buf->f_fsid.val[0] = (u32)id; | 585 | buf->f_fsid.val[0] = (u32)id; |
586 | buf->f_fsid.val[1] = (u32)(id >> 32); | 586 | buf->f_fsid.val[1] = (u32)(id >> 32); |
587 | buf->f_namelen = 30; | 587 | buf->f_namelen = AFFSNAMEMAX; |
588 | return 0; | 588 | return 0; |
589 | } | 589 | } |
590 | 590 | ||