| .. | .. |
|---|
| 31 | 31 | #define udf_info(fmt, ...) \ |
|---|
| 32 | 32 | pr_info("INFO " fmt, ##__VA_ARGS__) |
|---|
| 33 | 33 | |
|---|
| 34 | | -#undef UDFFS_DEBUG |
|---|
| 35 | | - |
|---|
| 36 | | -#ifdef UDFFS_DEBUG |
|---|
| 37 | 34 | #define udf_debug(fmt, ...) \ |
|---|
| 38 | | - printk(KERN_DEBUG pr_fmt("%s:%d:%s: " fmt), \ |
|---|
| 39 | | - __FILE__, __LINE__, __func__, ##__VA_ARGS__) |
|---|
| 40 | | -#else |
|---|
| 41 | | -#define udf_debug(fmt, ...) \ |
|---|
| 42 | | - no_printk(fmt, ##__VA_ARGS__) |
|---|
| 43 | | -#endif |
|---|
| 35 | + pr_debug("%s:%d:%s: " fmt, __FILE__, __LINE__, __func__, ##__VA_ARGS__) |
|---|
| 44 | 36 | |
|---|
| 45 | 37 | #define udf_fixed_to_variable(x) ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) ) |
|---|
| 46 | 38 | #define udf_variable_to_fixed(x) ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) ) |
|---|
| .. | .. |
|---|
| 178 | 170 | struct kernel_lb_addr *, uint32_t *, int); |
|---|
| 179 | 171 | extern int8_t udf_current_aext(struct inode *, struct extent_position *, |
|---|
| 180 | 172 | struct kernel_lb_addr *, uint32_t *, int); |
|---|
| 173 | +extern void udf_update_extra_perms(struct inode *inode, umode_t mode); |
|---|
| 181 | 174 | |
|---|
| 182 | 175 | /* misc.c */ |
|---|
| 183 | 176 | extern struct buffer_head *udf_tgetblk(struct super_block *sb, |
|---|
| .. | .. |
|---|
| 235 | 228 | /* truncate.c */ |
|---|
| 236 | 229 | extern void udf_truncate_tail_extent(struct inode *); |
|---|
| 237 | 230 | extern void udf_discard_prealloc(struct inode *); |
|---|
| 238 | | -extern void udf_truncate_extents(struct inode *); |
|---|
| 231 | +extern int udf_truncate_extents(struct inode *); |
|---|
| 239 | 232 | |
|---|
| 240 | 233 | /* balloc.c */ |
|---|
| 241 | 234 | extern void udf_free_blocks(struct super_block *, struct inode *, |
|---|