Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs

Pull UDF, reiserfs, quota, fsnotify cleanups from Jan Kara:
"Several UDF, reiserfs, quota and fsnotify cleanups.

Note that there is also a patch updating MAINTAINERS entry for
notification subsystem to point to me as a maintainer since current
entries are stale"

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
fsnotify: make dnotify_fsnotify_ops const
isofs: Delete an unnecessary variable initialisation in isofs_read_inode()
isofs: Adjust four checks for null pointers
isofs: Delete an error message for a failed memory allocation in isofs_read_inode()
quota_v2: Delete an error message for a failed memory allocation in v2_read_file_info()
fs-udf: Delete an error message for a failed memory allocation in two functions
fs-udf: Improve six size determinations
fs-udf: Adjust two checks for null pointers
reiserfs: fix spelling mistake: "tranasction" -> "transaction"
MAINTAINERS: Update entries for notification subsystem
uapi/linux/quota.h: Do not include linux/errno.h

+28 -35
+9 -5
MAINTAINERS
··· 4136 4136 F: include/trace/events/fs_dax.h 4137 4137 4138 4138 DIRECTORY NOTIFICATION (DNOTIFY) 4139 - M: Eric Paris <eparis@parisplace.org> 4139 + M: Jan Kara <jack@suse.cz> 4140 + R: Amir Goldstein <amir73il@gmail.com> 4141 + L: linux-fsdevel@vger.kernel.org 4140 4142 S: Maintained 4141 4143 F: Documentation/filesystems/dnotify.txt 4142 4144 F: fs/notify/dnotify/ ··· 5249 5247 F: drivers/hwmon/f71805f.c 5250 5248 5251 5249 FANOTIFY 5252 - M: Eric Paris <eparis@redhat.com> 5250 + M: Jan Kara <jack@suse.cz> 5251 + R: Amir Goldstein <amir73il@gmail.com> 5252 + L: linux-fsdevel@vger.kernel.org 5253 5253 S: Maintained 5254 5254 F: fs/notify/fanotify/ 5255 5255 F: include/linux/fanotify.h ··· 6761 6757 F: drivers/mtd/nand/jz4780_* 6762 6758 6763 6759 INOTIFY 6764 - M: John McCutchan <john@johnmccutchan.com> 6765 - M: Robert Love <rlove@rlove.org> 6766 - M: Eric Paris <eparis@parisplace.org> 6760 + M: Jan Kara <jack@suse.cz> 6761 + R: Amir Goldstein <amir73il@gmail.com> 6762 + L: linux-fsdevel@vger.kernel.org 6767 6763 S: Maintained 6768 6764 F: Documentation/filesystems/inotify.txt 6769 6765 F: fs/notify/inotify/
+5 -6
fs/isofs/inode.c
··· 96 96 0, (SLAB_RECLAIM_ACCOUNT| 97 97 SLAB_MEM_SPREAD|SLAB_ACCOUNT), 98 98 init_once); 99 - if (isofs_inode_cachep == NULL) 99 + if (!isofs_inode_cachep) 100 100 return -ENOMEM; 101 101 return 0; 102 102 } ··· 678 678 if (isonum_711(vdp->type) == ISO_VD_END) 679 679 break; 680 680 if (isonum_711(vdp->type) == ISO_VD_PRIMARY) { 681 - if (pri == NULL) { 681 + if (!pri) { 682 682 pri = (struct iso_primary_descriptor *)vdp; 683 683 /* Save the buffer in case we need it ... */ 684 684 pri_bh = bh; ··· 742 742 goto out_freebh; 743 743 } 744 744 745 - if (joliet_level && (pri == NULL || !opt.rock)) { 745 + if (joliet_level && (!pri || !opt.rock)) { 746 746 /* This is the case of Joliet with the norock mount flag. 747 747 * A disc with both Joliet and Rock Ridge is handled later 748 748 */ ··· 1298 1298 unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); 1299 1299 unsigned long block; 1300 1300 int high_sierra = sbi->s_high_sierra; 1301 - struct buffer_head *bh = NULL; 1301 + struct buffer_head *bh; 1302 1302 struct iso_directory_record *de; 1303 1303 struct iso_directory_record *tmpde = NULL; 1304 1304 unsigned int de_len; ··· 1320 1320 int frag1 = bufsize - offset; 1321 1321 1322 1322 tmpde = kmalloc(de_len, GFP_KERNEL); 1323 - if (tmpde == NULL) { 1324 - printk(KERN_INFO "%s: out of memory\n", __func__); 1323 + if (!tmpde) { 1325 1324 ret = -ENOMEM; 1326 1325 goto fail; 1327 1326 }
+1 -1
fs/notify/dnotify/dnotify.c
··· 133 133 kmem_cache_free(dnotify_mark_cache, dn_mark); 134 134 } 135 135 136 - static struct fsnotify_ops dnotify_fsnotify_ops = { 136 + static const struct fsnotify_ops dnotify_fsnotify_ops = { 137 137 .handle_event = dnotify_handle_event, 138 138 .free_mark = dnotify_free_mark, 139 139 };
+2 -4
fs/quota/quota_v2.c
··· 109 109 return -1; 110 110 } 111 111 info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); 112 - if (!info->dqi_priv) { 113 - printk(KERN_WARNING 114 - "Not enough memory for quota information structure.\n"); 112 + if (!info->dqi_priv) 115 113 return -ENOMEM; 116 - } 114 + 117 115 qinfo = info->dqi_priv; 118 116 if (version == 0) { 119 117 /* limits are stored as unsigned 32-bit data */
+1 -1
fs/reiserfs/journal.c
··· 1481 1481 if ((!was_jwait) && !buffer_locked(saved_bh)) { 1482 1482 reiserfs_warning(s, "journal-813", 1483 1483 "BAD! buffer %llu %cdirty %cjwait, " 1484 - "not in a newer tranasction", 1484 + "not in a newer transaction", 1485 1485 (unsigned long long)saved_bh-> 1486 1486 b_blocknr, was_dirty ? ' ' : '!', 1487 1487 was_jwait ? ' ' : '!');
+4 -9
fs/udf/inode.c
··· 114 114 __udf_clear_extent_cache(inode); 115 115 if (pos->bh) 116 116 get_bh(pos->bh); 117 - memcpy(&iinfo->cached_extent.epos, pos, sizeof(struct extent_position)); 117 + memcpy(&iinfo->cached_extent.epos, pos, sizeof(*pos)); 118 118 iinfo->cached_extent.lstart = estart; 119 119 switch (iinfo->i_alloc_type) { 120 120 case ICBTAG_FLAG_AD_SHORT: ··· 1572 1572 { 1573 1573 struct udf_inode_info *iinfo = UDF_I(inode); 1574 1574 iinfo->i_ext.i_data = kmalloc(size, GFP_KERNEL); 1575 - 1576 - if (!iinfo->i_ext.i_data) { 1577 - udf_err(inode->i_sb, "(ino %ld) no free memory\n", 1578 - inode->i_ino); 1575 + if (!iinfo->i_ext.i_data) 1579 1576 return -ENOMEM; 1580 - } 1581 - 1582 1577 return 0; 1583 1578 } 1584 1579 ··· 1698 1703 dsea->impUseLength = cpu_to_le32(sizeof(struct regid)); 1699 1704 } 1700 1705 eid = (struct regid *)dsea->impUse; 1701 - memset(eid, 0, sizeof(struct regid)); 1706 + memset(eid, 0, sizeof(*eid)); 1702 1707 strcpy(eid->ident, UDF_ID_DEVELOPER); 1703 1708 eid->identSuffix[0] = UDF_OS_CLASS_UNIX; 1704 1709 eid->identSuffix[1] = UDF_OS_ID_LINUX; ··· 1749 1754 udf_time_to_disk_stamp(&efe->createTime, iinfo->i_crtime); 1750 1755 udf_time_to_disk_stamp(&efe->attrTime, inode->i_ctime); 1751 1756 1752 - memset(&(efe->impIdent), 0, sizeof(struct regid)); 1757 + memset(&(efe->impIdent), 0, sizeof(efe->impIdent)); 1753 1758 strcpy(efe->impIdent.ident, UDF_ID_DEVELOPER); 1754 1759 efe->impIdent.identSuffix[0] = UDF_OS_CLASS_UNIX; 1755 1760 efe->impIdent.identSuffix[1] = UDF_OS_ID_LINUX;
+1 -1
fs/udf/namei.c
··· 1184 1184 */ 1185 1185 ncfi.fileVersionNum = ocfi.fileVersionNum; 1186 1186 ncfi.fileCharacteristics = ocfi.fileCharacteristics; 1187 - memcpy(&(ncfi.icb), &(ocfi.icb), sizeof(struct long_ad)); 1187 + memcpy(&(ncfi.icb), &(ocfi.icb), sizeof(ocfi.icb)); 1188 1188 udf_write_fi(new_dir, &ncfi, nfi, &nfibh, NULL, NULL); 1189 1189 1190 1190 /* The old fid may have moved - find it again */
+5 -7
fs/udf/super.c
··· 266 266 { 267 267 struct udf_sb_info *sbi = UDF_SB(sb); 268 268 269 - sbi->s_partmaps = kcalloc(count, sizeof(struct udf_part_map), 270 - GFP_KERNEL); 269 + sbi->s_partmaps = kcalloc(count, sizeof(*sbi->s_partmaps), GFP_KERNEL); 271 270 if (!sbi->s_partmaps) { 272 - udf_err(sb, "Unable to allocate space for %d partition maps\n", 273 - count); 274 271 sbi->s_partitions = 0; 275 272 return -ENOMEM; 276 273 } ··· 321 324 { 322 325 struct udf_sb_info *sbi = UDF_SB(sb); 323 326 int i; 324 - if (sbi->s_partmaps == NULL) 327 + 328 + if (!sbi->s_partmaps) 325 329 return; 326 330 for (i = 0; i < sbi->s_partitions; i++) 327 331 udf_free_partition(&sbi->s_partmaps[i]); ··· 1069 1071 else 1070 1072 bitmap = vzalloc(size); /* TODO: get rid of vzalloc */ 1071 1073 1072 - if (bitmap == NULL) 1074 + if (!bitmap) 1073 1075 return NULL; 1074 1076 1075 1077 bitmap->s_nr_groups = nr_groups; ··· 2097 2099 uopt.fmode = UDF_INVALID_MODE; 2098 2100 uopt.dmode = UDF_INVALID_MODE; 2099 2101 2100 - sbi = kzalloc(sizeof(struct udf_sb_info), GFP_KERNEL); 2102 + sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); 2101 2103 if (!sbi) 2102 2104 return -ENOMEM; 2103 2105
-1
include/uapi/linux/quota.h
··· 33 33 #ifndef _UAPI_LINUX_QUOTA_ 34 34 #define _UAPI_LINUX_QUOTA_ 35 35 36 - #include <linux/errno.h> 37 36 #include <linux/types.h> 38 37 39 38 #define __DQUOT_VERSION__ "dquot_6.6.0"