mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
This patch fixes buggy behaviour of UFS in such kind of scenario: open(, O_TRUNC...) ftruncate(, 1024) ftruncate(, 0) Such a scenario causes ufs_panic and remount read-only. This happen because of according to specification UFS should always allocate block for last byte, and many parts of our implementation rely on this, but `ufs_truncate' doesn't care about this. To make possible return error code and to know about old size, this patch removes `truncate' from ufs inode_operations and uses `setattr' method to call ufs_truncate. Signed-off-by: Evgeniy Dushistov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> |
||
| .. | ||
| balloc.c | ||
| cylinder.c | ||
| dir.c | ||
| file.c | ||
| ialloc.c | ||
| inode.c | ||
| Makefile | ||
| namei.c | ||
| super.c | ||
| swab.h | ||
| symlink.c | ||
| truncate.c | ||
| util.c | ||
| util.h | ||