12 #include <asm/uaccess.h>
20 unsigned short rsv_window_size;
22 ext3_debug (
"cmd = %u, arg = %lu\n", cmd, arg);
33 unsigned int oldflags;
46 flags = ext3_mask_flags(inode->
i_mode, flags);
75 if ((jflag ^ oldflags) & (EXT3_JOURNAL_DATA_FL)) {
80 handle = ext3_journal_start(inode, 1);
82 err = PTR_ERR(handle);
92 flags |= oldflags & ~EXT3_FL_USER_MODIFIABLE;
104 if ((jflag ^ oldflags) & (EXT3_JOURNAL_DATA_FL))
133 handle = ext3_journal_start(inode, 1);
134 if (IS_ERR(handle)) {
135 err = PTR_ERR(handle);
214 goto group_extend_out;
309 #ifdef CONFIG_JBD_DEBUG
310 case EXT3_IOC32_WAIT_FOR_READONLY:
311 cmd = EXT3_IOC_WAIT_FOR_READONLY;
325 return ext3_ioctl(file, cmd, (
unsigned long) compat_ptr(arg));