summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorOGAWA Hirofumi2008-11-06 21:53:54 +0100
committerLinus Torvalds2008-11-07 00:41:21 +0100
commit9c0aa1b87bf541affef519eb4879ce7c5a5941ae (patch)
tree3bd583d8331c630b59fc01b68ab9cb34bb953d6e /include/asm-generic
parentfat: Cleanup msdos_lookup() (diff)
downloadkernel-qcow2-linux-9c0aa1b87bf541affef519eb4879ce7c5a5941ae.tar.gz
kernel-qcow2-linux-9c0aa1b87bf541affef519eb4879ce7c5a5941ae.tar.xz
kernel-qcow2-linux-9c0aa1b87bf541affef519eb4879ce7c5a5941ae.zip
fat: Cleanup FAT attribute stuff
This adds three helpers: fat_make_attrs() - makes FAT attributes from inode. fat_make_mode() - makes mode_t from FAT attributes. fat_save_attrs() - saves FAT attributes to inode. Then this replaces: MSDOS_MKMODE() by fat_make_mode(), fat_attr() by fat_make_attrs(), ->i_attrs = attr & ATTR_UNUSED by fat_save_attrs(). And for root inode, those is used with ATTR_DIR instead of bogus ATTR_NONE. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions