Commit 3fdd89b
f2fs: prevent writing without fallocate() for pinned files
In a case writing without fallocate(), we can't guarantee it's allocated
in the conventional area for zoned stroage. To make it consistent across
storage devices, we disallow it regardless of storage device types.
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent 16778ae commit 3fdd89b
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 122 | + | |
127 | 123 | | |
128 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | | - | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
3260 | 3259 | | |
3261 | 3260 | | |
3262 | 3261 | | |
3263 | | - | |
| 3262 | + | |
3264 | 3263 | | |
3265 | 3264 | | |
3266 | 3265 | | |
| |||
4823 | 4822 | | |
4824 | 4823 | | |
4825 | 4824 | | |
| 4825 | + | |
| 4826 | + | |
4826 | 4827 | | |
4827 | 4828 | | |
4828 | 4829 | | |
| |||
4844 | 4845 | | |
4845 | 4846 | | |
4846 | 4847 | | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
4847 | 4854 | | |
4848 | 4855 | | |
4849 | 4856 | | |
| |||
0 commit comments