9 #include <linux/ctype.h>
10 #include <linux/capability.h>
12 #include <linux/time.h>
13 #include <linux/sched.h>
15 #include <asm/current.h>
16 #include <asm/uaccess.h>
40 static long jfs_map_ext2(
unsigned long flags,
int from)
48 mapped |= jfs_map[
index].jfs_flag;
50 if (jfs_map[index].jfs_flag & flags)
51 mapped |= jfs_map[
index].ext2_flag;
69 flags = jfs_map_ext2(flags, 0);
72 unsigned int oldflags;
88 flags = jfs_map_ext2(flags, 1);
102 oldflags = jfs_inode->
mode2;
109 ((flags ^ oldflags) &
119 flags |= oldflags & ~JFS_FL_USER_MODIFIABLE;
125 mark_inode_dirty(inode);
141 if (!blk_queue_discard(q)) {
142 jfs_warn(
"FITRIM not supported on device");
151 q->limits.discard_granularity);