diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-31 16:26:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-31 17:49:28 -0700 |
commit | 330fe3c4c6509e0418c434b5bcf80e65cffab477 (patch) | |
tree | f170e47fa9fd25bad3a5ce6996fdfbd86daa3706 /fs/binfmt_misc.c | |
parent | 90b436657efb1a6d73bf0677fedee8a8c77032f6 (diff) | |
download | op-kernel-dev-330fe3c4c6509e0418c434b5bcf80e65cffab477.zip op-kernel-dev-330fe3c4c6509e0418c434b5bcf80e65cffab477.tar.gz |
fat: mark superblock as dirty less often
Preparation for further changes. It touches few functions in fatent.c and
prevents them from marking the superblock as dirty unnecessarily often.
Namely, instead of marking it as dirty in the internal tight loops - do it
only once at the end of the functions. And instead of marking it as dirty
while holding the FAT table lock, do it outside the lock.
The reason for this patch is that marking the superblock as dirty will
soon become a little bit heavier operation, so it is cleaner to do this
only when it is necessary.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_misc.c')
0 files changed, 0 insertions, 0 deletions