[2.6 patch] jfs: remove DIRENTSIZ

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <shaggy@...>
Cc: <jfs-discussion@...>, <linux-kernel@...>
Date: Monday, June 9, 2008 - 6:27 pm

After fat gets fixed the unused DIRENTSIZ macro was the last user of
struct dirent we should get rid of since the kernel and userspace 
versions differed.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
89432c9b7ff2cd2e29fc5f2edde120dc38a89f46 diff --git a/fs/jfs/jfs_dtree.h b/fs/jfs/jfs_dtree.h
index cdac2d5..2545bb3 100644
--- a/fs/jfs/jfs_dtree.h
+++ b/fs/jfs/jfs_dtree.h
@@ -243,9 +243,6 @@ typedef union {
 #define JFS_REMOVE 3
 #define JFS_RENAME 4
 
-#define DIRENTSIZ(namlen) \
-    ( (sizeof(struct dirent) - 2*(JFS_NAME_MAX+1) + 2*((namlen)+1) + 3) &~ 3 )
-
 /*
  * Maximum file offset for directories.
  */

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] jfs: remove DIRENTSIZ, Adrian Bunk, (Mon Jun 9, 6:27 pm)
Re: [2.6 patch] jfs: remove DIRENTSIZ, Dave Kleikamp, (Tue Jun 10, 4:19 pm)