diff options
-rw-r--r-- | fs/reiserfs/reiserfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h index 48835a659948..ae4811fecc1f 100644 --- a/fs/reiserfs/reiserfs.h +++ b/fs/reiserfs/reiserfs.h | |||
@@ -1916,7 +1916,7 @@ struct reiserfs_de_head { | |||
1916 | 1916 | ||
1917 | /* empty directory contains two entries "." and ".." and their headers */ | 1917 | /* empty directory contains two entries "." and ".." and their headers */ |
1918 | #define EMPTY_DIR_SIZE \ | 1918 | #define EMPTY_DIR_SIZE \ |
1919 | (DEH_SIZE * 2 + ROUND_UP (strlen (".")) + ROUND_UP (strlen (".."))) | 1919 | (DEH_SIZE * 2 + ROUND_UP (sizeof(".") - 1) + ROUND_UP (sizeof("..") - 1)) |
1920 | 1920 | ||
1921 | /* old format directories have this size when empty */ | 1921 | /* old format directories have this size when empty */ |
1922 | #define EMPTY_DIR_SIZE_V1 (DEH_SIZE * 2 + 3) | 1922 | #define EMPTY_DIR_SIZE_V1 (DEH_SIZE * 2 + 3) |