summaryrefslogtreecommitdiffstats
path: root/fs/affs/affs.h
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-02-17 13:46:23 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 14:34:52 -0800
commitf157853e407c0611cd6acbc400fa6c7be420b1bd (patch)
treec8ee0adacfd4b798228d0ccd65de3f3ec0ce24d5 /fs/affs/affs.h
parenteeb36f8e938d151fc5e12e96ae13d0e283be357e (diff)
downloadop-kernel-dev-f157853e407c0611cd6acbc400fa6c7be420b1bd.zip
op-kernel-dev-f157853e407c0611cd6acbc400fa6c7be420b1bd.tar.gz
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/affs.h')
-rw-r--r--fs/affs/affs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h
index ff44ff3..c8764bd 100644
--- a/fs/affs/affs.h
+++ b/fs/affs/affs.h
@@ -30,6 +30,8 @@
#define AFFS_AC_SIZE (AFFS_CACHE_SIZE/sizeof(struct affs_ext_key)/2)
#define AFFS_AC_MASK (AFFS_AC_SIZE-1)
+#define AFFSNAMEMAX 30U
+
struct affs_ext_key {
u32 ext; /* idx of the extended block */
u32 key; /* block number */
OpenPOWER on IntegriCloud